package com.wangyb.wework.sync;

import com.wangyb.wework.service.contact.IWwContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

/**
 * @Author: wangyb
 * @Date: 2021/7/5 5:33 下午
 */
@Component
@EnableAsync
public class ContactServiceSyncLogic {
	@Autowired
	private IWwContactService contactService;

	/**
	 * @author: yangpengwei
	 * @time: 2021/5/10 10:53 上午
	 * @description 同步客户
	 */
	@Async
	public void onSync(Long corpId) {
		contactService.syncContact(corpId);
	}
}
